Comments on Oddmuse Like Button

 

2 Comments.

hmmm, after somebody clicked the "I like this!" link on the page Oddmuse Like Button, and the script simplemindedly modified a phrase in the middle of the perl source code rather than properly putting a "like" count at the end of the page ... well, I had to tweak the script to fix the problem ... the new module has a modified regular expression:

$LikeRegexp = qr'^====(\d+) persons? liked this====$';

with begin-line (^) and end-line ($) markers in the regex, so it will only match a complete line, not a fragment ...

Zimm 2011-12-20 23:56 UTC


hmmm, the "I like this!" link doesn't seem to work for non-Editors ... must investigate and see whether it's worth fixing, how to fix, etc. ... ^z

z0 2012-05-23 10:29 UTC</div>